<?php 
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Knowledge extends CI_Controller{
	public function __construct(){
		parent::__construct();
		$this->load->helper('url');	
		$this->load->model("kl");
	} 
	
	public function index(){
		$data = array(
			'title'   => 'guaiguai',
			'content' => 'brother',
			'heading' => 'greedy'
		);
		$data['houhou'] = array('a', 'b', 'c');
		$data['asd'] = $this->kl->getLi();
		$this->load->view('knowledge', $data, false );   //第三个参数设置为true时，并不加载页面，但却把值保存在了一个参数中，那么这个参数是要自己定义，如果是，那
		                                                 //怎么定义，又在哪里定义
		
	}
	public function abc($d){
		if( $d == ""){
			echo "guaiguai";
		}else{
			echo "houhou";
		}	
	}
}
?>